package com.d3works.apps.base.service.advancedExport;

import com.d3works.apps.base.db.AdvancedExport;
import com.d3works.exception.D3worksException;
import com.d3works.meta.db.MetaModel;
import com.d3works.rpc.filter.Filter;
import java.io.File;
import java.util.List;
import javax.persistence.Query;

public interface AdvancedExportService {

  public static final String LANGUAGE_FR = "fr";

  public static final String PDF = "PDF";
  public static final String EXCEL = "EXCEL";
  public static final String CSV = "CSV";

  public Query getAdvancedExportQuery(AdvancedExport advancedExport, List<Long> recordIds)
      throws D3worksException;

  public File export(AdvancedExport advancedExport, List<Long> recordIds, String fileType)
      throws D3worksException;

  public Filter getJpaSecurityFilter(MetaModel metaModel);

  public boolean getIsReachMaxExportLimit();

  public String getExportFileName();

  public boolean checkAdvancedExportExist(String metaModelName);
}
